<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::controllers([
    'auth' => 'Auth\AuthController',
    'password' => 'Auth\PasswordController',
]);
/*Route::get('/news',function(){
    return view('news');
});*/
Route::get('/news','NewsController@index');
Route::get('/news/create','NewsController@create');
Route::post('/news/create','NewsController@store');
Route::get('/news/{id}','NewsController@show');
Route::get('/news/{id}/edit','NewsController@edit');
Route::post('/news/{id}/edit','NewsController@update');
Route::get('/news/{id}/delete','NewsController@destroy');
